package sk.stuba.fiit.ltasys.web.mvc.model.dao;

import java.util.Collection;

import sk.stuba.fiit.ltasys.web.mvc.model.entity.UserEntity;

import org.springframework.dao.DataAccessException;

/**
 * User DAO interface.
 * 
 * @author Marek Hruska
 */
public interface UserDao {

    /**
     * Find user.
     */
    public Collection<UserEntity> findUsers() throws DataAccessException;
    
    /**
     * Saves user.
     */
    public void save(UserEntity userEntity);
    
    
    /**
     * Delete user.
     */
    public void delete(UserEntity userEntity);
    
    /**
     * Find user by id.
     */
    public UserEntity findUserById(String id) throws DataAccessException;

	public void deleteUserByName(String name);

	public UserEntity findUserByUserName(String username);
}

